﻿@model IEnumerable<Inovout.YunYao.Models.BaseLocation>
<div class="h4">
    <div class="w-1">
        <h2 class="wpTitle">@Html.BreadCrumb((Navigation)ViewBag.BreadCrumb)</h2>
    </div>
</div>
<div>
    <table id="locationTable" class="jqGrid">
        <tr>
            <th class="w20">名称</th>
            <th class="w10">代码</th>
        </tr>
        @foreach (var item in Model)
        {
            <tr>
                <td>@if (item is Inovout.YunYao.Models.Location)
                    {@Html.RouteLink(item.Name, new { controller = "Location", action = "Children", id = @item.Id })        }
                    else
                    {
                    @item.Name
                    }
                </td>
                <td>@item.Code</td>
            </tr>    
        }
    </table>
</div>
